import request from '@/utils/request'


export function getSellers (value) {
  return request({
    url: `/user/page/${value.page}/${value.pageSize}`,
    method: 'get',
  })
}
export function addSeller (data) {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}
//修改销售
export function updateSeller (user) {
  return request({
    url: '/user/modify',
    method: 'put',
    data: user
  })
}
//禁用销售
export function disableSeller (ids) {
  return request({
    url: '/user/disable',
    method: 'post',
    params: ids
  })
}
//启用销售
export function ableSeller (ids) {
  return request({
    url: '/user/able',
    method: 'post',
    params: ids
  })
}  
